import request from '@/utils/request'
// 查询账单详情
export function getdetailAPI(params) {
  return request({
    url: '/park/propertyfee',
    params
  })
}
// 删除账单信息
export function deldetailAPI(id) {
  return request({
    url: `/park/propertyfee/${id}`,
    method: 'DELETE'
  })
}
// 查询所有楼宇
export function getbuildAPI(Authorization) {
  return request({
    url: '/park/all/building',
    params: { Authorization }
  })
}
// 查询所有企业
export function enterpriseNameAPI(Authorization) {
  return request({
    url: '/park/all/enterprise',
    params: { Authorization }
  })
}
// 添加账单
export function createdAPI(data) {
  return request({
    url: '/park/propertyfee',
    method: 'POST',
    data
  })
}
// 物业费-查看账单详情
export function checkAPI(id) {
  return request({
    url: `/park/propertyfee/${id}`
  })
}
// 物业费-预算金额
export function budgetAPI(data) {
  return request({
    url: '/park/propertyfee/pre/payment',
    method: 'POST',
    data
  })
}
